<template>
  <div class="app-container">
    <div class="item2">
      <div class="header">
        <div class="title1">
          <i class="el-icon-data-analysis"></i><span>二楼线体综合报表</span>
        </div>
        <div class="backB">
          <img src="@/assets/images/back.png" alt="" @click="goBack" />
        </div>
      </div>
      <div class="content">
        <div class="rightContent">
          <div class="formCenter">岛一岛二进大B数量【大B可用率】</div>
          <div class="largeLand">
            <el-table
            :data="largeLandtableData"
            border
            height="133"
            v-loading="loading"
            element-loading-text="拼命加载中"
            element-loading-spinner="el-icon-loading"
            :header-cell-style="{ background: '#763cfb', color: '#ffffff' }"
          >
            <!-- <el-table-column align="center" prop="wlType" label="物流类型">
        </el-table-column> -->
            <el-table-column align="center" prop="stationNo" label="站台号">
            </el-table-column>
            <el-table-column
              align="center"
              prop="stationCount"
              label="可分大B数量"
            >
            </el-table-column>
            <el-table-column align="center" prop="threshold" label="可分位置数">
            </el-table-column>
            <el-table-column align="center" prop="useCount" label="可用位置数">
            </el-table-column>
            <el-table-column align="center" prop="useRate" label="可用率">
            </el-table-column>
          </el-table>
          </div>
          <div class="formCenter">岛一岛二进中B数量【中B可用率】</div>
          <div class="mediumLand">
            <el-table
            :data="mediumLandtableData"
            border
            height="177"
            v-loading="loading"
            element-loading-text="拼命加载中"
            element-loading-spinner="el-icon-loading"
            :header-cell-style="{ background: '#763cfb', color: '#ffffff' }"
          >
            <el-table-column align="center" prop="stationNo" label="站台号">
            </el-table-column>
            <el-table-column
              align="center"
              prop="stationCount"
              label="可分中B数量"
            >
            </el-table-column>
            <el-table-column align="center" prop="threshold" label="可分位置数">
            </el-table-column>
            <el-table-column align="center" prop="useCount" label="可用位置数">
            </el-table-column>
            <el-table-column align="center" prop="useRate" label="可用率">
            </el-table-column>
          </el-table>
          </div>
        </div>
        <div class="leftcontent">
          <div class="formCenter">大B捡完的箱子数和阈值</div>
          <div class="largeB">
            <el-table
            :data="largeBtableData"
            border
            height="90"
            v-loading="loading"
            element-loading-text="拼命加载中"
            element-loading-spinner="el-icon-loading"
            :header-cell-style="{ background: '#1890ff', color: '#ffffff' }"
          >
            <el-table-column
              align="center"
              prop="upCount"
              label="已捡完大B箱子"
            >
            </el-table-column>
            <el-table-column
              align="center"
              prop="checkCount"
              label="复核台大B箱子阈值"
            >
            </el-table-column>
            <el-table-column align="center" prop="onOff" label="是否开启多穿">
              <template slot-scope="scope">
                <el-switch
                  disabled
                  v-model="scope.row.onOff"
                  active-color="#13ce66"
                  inactive-color="#dedede"
                  active-value="1"
                  inactive-value="0"
                ></el-switch>
              </template>
            </el-table-column>
          </el-table>
          </div>
          <div class="formCenter">中B捡完的箱子数和阈值</div>
          <div class="mediumB">
            <el-table
            :data="mediumBtableData"
            border
            height="90"
            v-loading="loading"
            element-loading-text="拼命加载中"
            element-loading-spinner="el-icon-loading"
            :header-cell-style="{ background: '#1890ff', color: '#ffffff' }"
          >
            <el-table-column
              align="center"
              prop="upCount"
              label="已捡完中B箱子"
            >
            </el-table-column>
            <el-table-column
              align="center"
              prop="checkCount"
              label="复核台中B箱子阈值"
            >
            </el-table-column>
            <el-table-column
              align="center"
              prop="threshold"
              label="多穿中B阈值"
            >
            </el-table-column>
            <el-table-column align="center" prop="onOff" label="是否开启多穿">
              <template slot-scope="scope">
                <el-switch
                  disabled
                  v-model="scope.row.onOff"
                  active-color="#13ce66"
                  inactive-color="#dedede"
                  active-value="1"
                  inactive-value="0"
                ></el-switch>
              </template>
            </el-table-column>
          </el-table>
          </div>
          <div class="formCenter">小B捡完的箱子数和阈值</div>
          <div class="smallB">
            <el-table
            :data="smallBtableData"
            border
            height="90"
            v-loading="loading"
            element-loading-text="拼命加载中"
            element-loading-spinner="el-icon-loading"
            :header-cell-style="{ background: '#1890ff', color: '#ffffff' }"
          >
            <el-table-column
              align="center"
              prop="upCount"
              label="已捡完小B箱子"
            >
            </el-table-column>
            <el-table-column
              align="center"
              prop="checkCount"
              label="复核台小B箱子阈值"
            >
            </el-table-column>
            <el-table-column
              align="center"
              prop="threshold"
              label="多穿小B阈值"
            >
            </el-table-column>
            <el-table-column align="center" prop="onOff" label="是否开启多穿">
              <template slot-scope="scope">
                <el-switch
                  disabled
                  v-model="scope.row.onOff"
                  active-color="#13ce66"
                  inactive-color="#dedede"
                  active-value="1"
                  inactive-value="0"
                ></el-switch>
              </template>
            </el-table-column>
          </el-table>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { upboxlist } from "@/api/subSystem/continer";
export default {
  data() {
    return {
      loading: false,
      largeBtableData: [],
      mediumBtableData: [],
      smallBtableData: [],
      largeLandtableData: [],
      mediumLandtableData: [],
    };
  },
  mounted() {
    this.getNumberStatic();
  },
  methods: {
    goBack() {
      this.$router.push("/subSystem1");
    },
    getNumberStatic() {
      upboxlist().then((res) => {
        console.log(res);
        this.largeBtableData = res.data.large;
        this.mediumBtableData = res.data.medium;
        this.smallBtableData = res.data.small;
        this.largeLandtableData = res.data.largeLand;
        this.mediumLandtableData = res.data.mediumLand;
      });
    },
  },
};
</script>
<style lang="scss" scoped>
.app-container {
  .el-icon-data-analysis::before {
    color: #00d9ff;
    margin-right: 8px;
  }
  .title1 {
    font-size: 16px;
    // margin-bottom: 15px;
    color: #808080;
    width: 200px;
    padding: 5px;
    border-bottom: 1px dotted #8ddfff;
  }
  .header {
    margin-top: -10px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .el-date-editor.el-input,
    .el-date-editor.el-input__inner {
      width: 220px;
      margin-right: 20px;
    }

    .backB {
      cursor: pointer;

      img {
        width: 20%;
      }
    }
  }
  .content {
    display: flex;
    justify-content: space-around;
    .leftcontent {
      width: 47%;
      height: 100%;
    }
    .rightContent {
      width: 47%;
      height: 100%;
    }
  }
  .formCenter {
    width: 100%;
    font-size: 16px;
    color: #808080;
    margin: 10px 0;
    text-align: center;
  }
  .footer {
    margin-top: 20px;
    width: 100%;
    min-height: 200px;
  }
  .el-select {
    width: 240px;
  }
  ::v-deep .el-form {
    margin-left: 2%;
  }
  .exportstyle {
    height: 62px;
    margin-right: 5%;
  }
  .largeLand{
    height: 172px;
  }
  .mediumLand{
    height: 340px;
  }
  .smallB{
    height: 172px;
  }
  .mediumB{
    height: 172px;
  }
  .largeB{
    height: 172px;
  }
}
</style>